#coding=utf-8
class Employee:
    '所有员工的基类'
    empCount = 0 # 公开变量
    __secretCount = 0 # 私有变量

    def __init__(self, name, salary):
        self.name = name
        self.salary = salary
        self.__secretCount += 1
        Employee.empCount += 1

    def __del__(self):
        class_name = self.__class__.__name__
        print(class_name, "销毁")

    def displayCount(self):
        print("Total Employee %d" % Employee.empCount)

    def displayEmployee(self):
        print ("Name : ", self.name, ", Salary: ", self.salary)

    def setAttr(self, attr):
        self.parentAttr = attr

    def getAttr(self):
        return self.parentAttr